#ifndef DATETIMETHREAD_H
#define DATETIMETHREAD_H

#include <QObject>
#include <QDateTime>

class DateTimeThread : public QObject
{
    Q_OBJECT
public:
    explicit DateTimeThread(QObject *parent = nullptr);    

signals:
    void SendDateInfo(const QDateTime &curDatetime);

public slots:
    void ThreadRun();

public:
    void setFlag(bool flag);

private:
    bool m_bisStart;
};

#endif // DATETIMETHREAD_H
